package com.hotelmanage.manage.services;


import com.hotelmanage.manage.entities.Room;
import com.hotelmanage.manage.mappers.RoomMapper;
import com.hotelmanage.manage.mappers.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomService {

    @Autowired
    RoomMapper roomMapper;

    public List<Room> getAll(){
        return roomMapper.findAll();
    }
    public Room save(Room room){
        return roomMapper.save(room);
    }
}
